package chapter02

object FunctionTest extends App {

  def functionName(i: Int): Int = {
    i + 1
  }

  def str(a: String, b: String = "Hello", c: String = "Scala") = {

    a + " " + b + " " + c
  }

  println(str("java"))
  println(str("java", "OK"))

  println(str("java", c = " Python"))
  
  
  
  def param(a:Int*)={
    for(i<-a)
      println(i)
  }
  
  param(1,2,3,4,5)
}